home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / MATHS / RLAB / RLAB125.ZIP / !RLaB / help_ai / finite < prev    next >
Text File  |  1995-02-18  |  607b  |  25 lines

  1. finite:
  2.  
  3. Syntax: finite ( A )
  4.  
  5. Description:
  6.  
  7.     finite returns a matrix, the same size as the input (A),
  8.     consisting of ones and zeros. The elements of the return
  9.     matrix are 1 if the corresponding value of A is finite, or
  10.     zero if the corresponding element of A is an Inf or a NaN. 
  11.  
  12. Example:
  13.  
  14.         > a = [1, inf(), 3; 4, 5, 6; inf(), 8, nan()]
  15.          a =
  16.                 1        inf          3  
  17.                 4          5          6  
  18.               inf          8  nan0x80000000  
  19.         > finite (a)
  20.                 1          0          1  
  21.                 1          1          1  
  22.                 0          1          0  
  23.  
  24. See Also: isinf, isnan
  25.